// 机构的请求
import { httpDelete, httpGet, httpPost, httpPut } from "../utils/http"
// 查询机构
export const searchOrganizationsApi = (data) => {
  return httpPost('/organizations/search', data)
}
// 新增机构
export const addOrganizationsApi = (data) => {
  return httpPost('/organizations/add', data)
}
// 修改机构 
export const updateOrganizationsApi = (data) => {
  return httpPut('/organizations/update', data)
}
// 删除机构 
export const removeOrganizationsApi = (data) => {
  return httpDelete('/organizations/remove', data)
}
// 获取一个机构详情 
export const detailOrganizationsApi = (data) => {
  return httpGet('/organizations/detail', data)
}